<table cellspacing="0" class="tablesorter">
            <thead>
                <tr>
                    <th><span style="font-size:15px;color:black;">Message Content</span>&nbsp;&nbsp;&nbsp;
                    <input type="button" class="mail_delete"  id="<?php echo $message['MessageTrack']['id'];?>" value="Delete" name="delete" />&nbsp;
                    <input type="button" class="mail_move" id="<?php echo $message['MessageTrack']['id'];?>" value="Move to Inbox/Sent Items" name="move" />&nbsp;
                    <input type="button" class="mail_star" id="<?php echo $message['MessageTrack']['id'];?>" value="Star/Unstar this Message" name="<?php echo $message['MessageTrack']['star'];?>" />&nbsp;
                    </th>
                </tr>
            </thead>
            <tbody>

                <tr>
                    <td ><span style="padding-right:50px;"><?php if($session->read('Auth.User.id')==$message['MessageTrack']['to_id']){
                        echo 'From:';}
                        else
                          {echo 'To:';}?> &nbsp;&nbsp;&nbsp;
                    <?php if($session->read('Auth.User.id')==$message['MessageTrack']['to_id']){echo $message['Sender']['username'];}else{if($message['MessageTrack']['to_id']==0){echo $message['MessageTrack']['to_group'];}else{echo $message['Recipient']['username'];}}?></span>
                        Date: <?php echo date('m-d-Y',strtotime($message['Message']['created']));?></td>

                </tr>

                 <tr>
                    <td >Subject: <?php echo $message['Message']['subject'];?></td>
                  </tr>
                  <tr>
                    <td >Message:</td>
                  </tr>
                   <tr>
                    <td ><?php echo $message['Message']['message'];?></td>
                  </tr>
                    <tbody>
                </table>